package com.jh.user.business;

import cn.jh.common.exception.ServiceException;
import com.jh.user.pojo.ShopRegister;
import com.jh.user.pojo.StoreInfo;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

public interface StoreInfoBussiness {
    Object mergeStoreInfo(StoreInfo storeInfo);

    Page<StoreInfo> findByShopIdAndLegalNameAndShopName(String shopId, String shopName, Pageable pageable);

    Object findsShopNanmeByShopId(String shopId, Pageable pageable);

    void updataStoreInfo(StoreInfo storeInfo) throws Exception;

    StoreInfo updateStoreInfo(ShopRegister shopRegister) throws ServiceException;

    void deleteStoreInfo(StoreInfo storeInfo) throws Exception;

    StoreInfo saveStoreInfo(StoreInfo storeInfo, long brandId);

    StoreInfo findByShopId(String shopId);
}
